package edu.fyvtc.javaweb.demo.mapper;

import edu.fyvtc.javaweb.demo.model.House;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface HouseMapper {

    //插入数据
    public Integer insert(@Param("house") House house);

    //根据Id查找
    public House selectById(@Param("id") String id);

//    //根据条件，统计有多少条记录
//    public Integer countByCondition(House house);

//    //根据location列表，查找多个数据
//    public List<House> selectByLocations(List<String> locations);

}
